package com.yike.order.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yike.common.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import com.yike.common.api.Update;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 资产流水
 *
 * @author yike
 * @since 2024-07-17
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("qy_asset_statement")
@ApiModel(value = "AssetStatement对象")
public class AssetStatement extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单金额")
    private BigDecimal amount;

    @ApiModelProperty("店铺id")
    private Long shopId;

    @ApiModelProperty("订单号")
    private String orderNo;

    @ApiModelProperty("支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty("支付方式:0:未支付 1.现金支付 2.储值支付 3.微信 4.支付宝")
    private Integer payway;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("设备号")
    private String macNo;

    @ApiModelProperty("支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

}
